package com.bw.service.impl;

import com.bw.entity.Orders;
import com.bw.entity.group.OrderGoods;
import com.bw.mapper.OrdersMapper;
import com.bw.service.IOrdersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lizhengqian
 * @since 2020-05-29
 */
@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements IOrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<OrderGoods> getList() {
        return ordersMapper.getList();
    }

    @Override
    public void shenhe(Long oid) {
        ordersMapper.shenhe(oid);
    }
}
